<?php
//+-----------------------------------------------------------
//| 人生是荒芜的旅行，冷暖自知，苦乐在心
//+-----------------------------------------------------------
//| Author:Janmas <janmas@126.com>
//+-----------------------------------------------------------
//| 
//+-----------------------------------------------------------

$a=  [
    'name' => '商品管理',
    'icon' => '',//layui的icon
    'controller' => '',
    'action' => '',
    'link' => '',
    'is_show' => '1',
    'type' => '0',//0菜单组 1菜单 2 按钮
    'children' => [
        'name' => '商品列表',
        'icon' => '',
        'controller' => 'Goods',
        'action' => 'index',
        'link' => 'Goods/index',
        'is_show' => '1',
        'type' => '1',
        'children' => [
            'name' => '新增',
            'icon' => '',
            'controller' => 'Goods',
            'action' => 'create',
            'link' => 'Goods/create',
            'is_show' => '1',
            'type' => '2',
        ]
    ]
];

echo json_encode($a,JSON_UNESCAPED_UNICODE);